<%@page import="java.net.URLEncoder"%>
<%@page import="com.liferay.portlet.documentlibrary.service.DLFileEntryLocalServiceUtil"%>
<%@page import="com.liferay.portlet.documentlibrary.model.DLFileEntry"%>
<%@page import="com.liferay.portal.kernel.util.Constants"%>
<%@page import="com.mto.quangcao.model.QuangCao_banner"%>
<%@page import="com.liferay.portal.kernel.util.WebKeys"%>
<%@page import="com.liferay.portal.kernel.dao.search.ResultRow"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@include file="/html/config/init.jsp"%>
<%
	ResultRow resultRow = (ResultRow) request
			.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);
	QuangCao_banner qc = (QuangCao_banner) resultRow.getObject();
	String primkey = String.valueOf(qc.getQuangCaoId());
	long fileId = qc.getFileEntryId();
	DLFileEntry entry = DLFileEntryLocalServiceUtil.getFileEntry(fileId);
	String url = ("/documents/" + entry.getGroupId() + 
			                   "/" + entry.getFolderId() + "/" + URLEncoder.encode(entry.getTitle(), "UTF-8"));
	String fullUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() +url;
	System.out.println("fullUrl"+fullUrl);
%>



<script type='text/javascript' charset='utf-8'>
$(function() {
    $('.my-button').bind('click', function(e) {
        e.preventDefault();
        $('.element_to_pop_up').bPopup();
    });
});
</script>


